package chap7;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Square {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        //用*组成矩形
        System.out.println("输入矩形长和宽：");
        int w=sc.nextInt();
        int h=sc.nextInt();//大于0
        for(int i=1;i<=h;i++){
            for(int j=1;j<=w;j++){
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
